-module(edrp_sup).

-behaviour(supervisor).

-export([start_link/1]).

-export([init/1]).

start_link(Args) ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, Args).

init(Args) ->
    {ok, {{one_for_one, 10, 10},
          [
           {edrp_proxy_sup, {edrp_proxy_sup, start_link, Args},
            transient, infinity, supervisor, [edrp_proxy_sup]},
           {edrp_dispatcher_sup, {edrp_dispatcher_sup, start_link, [[]]},
            transient, infinity, supervisor, [edrp_dispatcher_sup]},
           {edrp_cache_sup, {edrp_cache_sup, start_link, [[]]},
            transient, infinity, supervisor, [edrp_cache_sup]}
          ]}}.
